#include <ctype.h>
#include <limits.h>
#include <math.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>

#include "uthash.h"

int main()
{
	return 0;
}

int removeDuplicates(int* nums, int numsSize)
{
	if (numsSize <= 2) return numsSize;
	int idx_pre = 0;
	for (int idx = 2; idx < numsSize; idx++) {
		if (nums[idx] == nums[idx_pre]) continue;
		nums[++idx_pre + 1] = nums[idx];
	}
	return idx_pre + 2;
}
